package com.dingreading.cloud.soms.service.impl;

import com.dingreading.cloud.soms.entity.SsMstXcxStudentQuizAnswers;
import com.dingreading.cloud.soms.entity.table.SsMstXcxStudentQuizAnswersTableDef;
import com.dingreading.cloud.soms.mapper.SsMstXcxStudentQuizAnswersMapper;
import com.dingreading.cloud.soms.service.SsMstXcxStudentQuizAnswersService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 小程序学生答题记录表 服务层实现。
 *
 * @author EDY
 * @since 2025-11-03
 */
@Service
public class SsMstSsMstXcxStudentQuizAnswersServiceImpl extends BaseServiceImpl<SsMstXcxStudentQuizAnswersMapper, SsMstXcxStudentQuizAnswers, SsMstXcxStudentQuizAnswersTableDef> implements SsMstXcxStudentQuizAnswersService {

    @Override
    protected SsMstXcxStudentQuizAnswersTableDef getTable() {
        return SsMstXcxStudentQuizAnswersTableDef.ssMstXcxStudentQuizAnswers;
    }

    @Override
    public List<SsMstXcxStudentQuizAnswers> getByMstStoreUid(String mstStoreUid) {
        return getMapper().selectListByCondition(table.storeUid.eq(mstStoreUid));
    }
}
